@charset "UTF-8";
/* style.css */
.nav-card {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 1rem;
    margin: 1rem auto;
    max-width: 100%;
    z-index: 100;
}

.nav-container {
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.nav-card::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 100%;
    height: 100%;
    
    border-radius: 12px;
    z-index: -1;
}

/* 修改原有导航样式 */
nav a {
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

nav a:hover {
    background: rgba(0, 94, 148, 0.1);
    transform: translateY(-2px);
}

/* 新增页脚框架样式 */
.footer-card {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    margin: 2rem auto 1rem;
    max-width: 100%;
    position: relative;
}

.footer-card::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    width: 100%;
    height: 100%;
    
    border-radius: 12px;
    z-index: -1;
}

.footer-content {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9em;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #4361EE;
    --card-bg: #ffffff;
}

/* 照片样式 */
.profile-photo {
    width: 120px;
    height: 160px;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    object-fit: cover;
    margin-right: 2rem;
}

.profile-container {
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* 边框系统 */
.main-border {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    position: relative;
    padding: 1.5rem;
}

.accent-border::after {
    content: "";
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 98%;
    height: 98%;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    z-index: -1;
}

.info-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 1.5rem auto;
    padding: 2rem;
    max-width: 1000px;
    position: relative;
    overflow: visible;
}

/* 其他优化样式 */
.section-title {
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-photo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* 添加打印按钮样式 */
.print-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.print-btn:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}

/* 打印样式调整 */
@media print {
    .print-btn,
    nav,
    footer {
        display: none !important;
    }

    .info-card {
        box-shadow: none;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }

    .profile-photo {
        border-width: 2px !important;
    }

    .content-frame {
        border: 1px solid #eee !important;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }

    .header-frame {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid var(--primary-color);
    }

    progress {
        print-color-adjust: exact; /* 仅保留标准属性 */
        -webkit-print-color-adjust: exact; /* 可选：兼容旧版WebKit内核浏览器 */
    }
}

/* 增强提示样式 */
.alert-container {
    max-width: 800px;
    margin: 1rem auto;
    transition: all 0.3s ease;
}

.alert {
    padding: 1.2rem;
    border-radius: 12px;
    border: 2px solid;
    margin: 1rem 0;
    background: var(--card-bg);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.alert-success {
    border-color: #4CAF50;
    color: #2e7d32;
}

.alert-error {
    border-color: #f44336;
    color: #b71c1c;
}

.alert small {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.9em;
    color: #666;
}

/* 动态效果增强 */
.animate-fadein {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-details {
    border-left: 3px solid #f44336;
    padding-left: 1rem;
    margin-top: 0.8rem;
    opacity: 0.8;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .url-form input {
        width: 70% !important;
    }
    
    .print-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1.5rem;
    }
}
